<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>品牌大全</title>
    <link rel="stylesheet" href="../js/flexible.js">
    <link rel="stylesheet" href="../css/brandTitle.css">
    <script src="./../js/flexible.js"></script>
</head>

<body>
    <header id="header">
        <a href="index.html" class="back fl">&lt;</a>
        <h4>品牌大全</h4>
        <div class="app fr">
            <a href="inlandproduct.html?productid=0&title=国内折扣">
                <img src="../assets/images/header_app.png" alt="">
            </a>
        </div>
    </header>
    <div id="search">
        <div class=searchbox>
            <input type="text" name placeholder = "请输入您想要比价的产品">
        </div>
        <div class="button">
            <button>
                搜索   
            </button>
        </div>
    </div>
    <div class="backup clearfix">
        
        <a href="index.html">首页></a>
        <a href="#">全部分类></a>
       

    </div>

    <div class="chartss">
        <p>热门品牌</p>

    </div>
    <main>
        <div class="panel-group">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a href="#">
                            <span>平板电视十大品牌</span>
                            <i class="fr"></i>
                        </a>
                    </h4>
    
                </div>
    
            </div>
        </div>
    </main>

    <section id ="footer">
        <div class="login">
            <div class="container">
                <div class="row">
                    <a href>
                        <div class="col-xs-3">登入</div>
                    </a>
                    <a href>
                        <div class="col-xs-4">注册</div>
                    </a>
                    <a href>
                        <div class="col-xs-5">返回顶部</div>
                    </a>
                </div>
            </div>
            <div class="content_b">
                <p>
                    <a href="#">手机APP下载</a>
                    <a href="#">慢慢买手机版</a>
                    "--掌上比价平台"
                </p>
                <p>m.manmanbuy.com 0</p>
            </div>
        </div>
    </section>
</body>

</html>

<script>
 fetch("http://chst.vip:1234/api/getbrandproductlist?brandtitleid=0&pagesize=10")
    .then(body => body.json())
    .then(res => {
        console.log(res);
        let html = "";
        res.result.forEach(item =>{
            html+=`
            <li>
                
                
                <span>${item.brandName}</span>
                
            </li>
           
            
            `
        })
        uu.innerHTML = html;
        




    })
</script>